<template>
  <van-tabbar v-model="active" :route="true">
  <van-tabbar-item icon="home-o" to="/home">主页</van-tabbar-item>
  <van-tabbar-item icon="search" to="/bill">账单</van-tabbar-item>
  <van-tabbar-item icon="friends-o" to="/reportForms">报表</van-tabbar-item>
  <van-tabbar-item icon="setting-o" to="/mine">我的</van-tabbar-item>
</van-tabbar>
</template>

<script setup lang="ts" name="name">
  import {ref,watch} from 'vue'
  let active = ref(0)
  
  // watch(active,(value)=>{
  //   console.log('切换的页面',value)
  // })

</script>

<style scoped>
</style>